<?php
defined('_JEXEC') or die;

function modChrome_jmmodule($module, &$params, &$attribs) {
?>
<div class="jm-module <?php echo $params->get('moduleclass_sfx'); ?>" id="Mod<?php echo $module->id; ?>">
	<div class="jm-module-in">
		<?php if ((!strstr($params->get('moduleclass_sfx'), "title-down") == true ) && (!$module->showtitle == 0)) : ?>
		<div class="jm-title-wrap">
	   		<h3 class="jm-title"><?php echo $module->title; ?></h3>
	   	</div>
	    <?php endif; ?>
	    <div class="jm-module-content clearfix">
	    	<?php echo $module->content; ?>
	    </div>
		<?php if ((strstr($params->get('moduleclass_sfx'), "title-down") == true ) && (!$module->showtitle == 0)) : ?>
		<div class="jm-title-wrap">
	   		<h3 class="jm-title"><?php echo $module->title; ?></h3>
	   	</div>
	    <?php endif; ?>
	</div>
</div>
<?php 
}
?>